import request from '../../util/axios'

// 查询温湿度列表
export const getTemperature = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/paging',
    method: 'post',
    data: data
  })
}
// 报表下载
export const requestDownload = () => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/download',
    method: 'post',
    responseType: 'blob'
  })
}
// 新增
export const requestAdd = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/add',
    method: 'post',
    data: data
  })
}
// 删除
export const requestDel = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/delete',
    method: 'delete',
    data: data
  })
}

// 分页查询报警记录
export const requestAlarmRecord = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/AlarmRecord',
    method: 'post',
    data: data
  })
}
// 报警温湿度查询
export const getSet = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/Alarmquery',
    method: 'post',
    data: data
  })
}
// 设置报警温度修改
export const requestSet = (data) => {
  return request({
    url: '/yuyi-storehouse-boot/text/demo2/Alarmedit',
    method: 'put',
    data: data
  })
}
